Conditions | 1 |
Total Lines | 13 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /** |
||
30 | |||
31 | getSettings(): object { |
||
32 | return { |
||
33 | "mode": this.mode, // no-cors, *cors, same-origin |
||
34 | "cache": this.cache, // *default, no-cache, reload, force-cache, only-if-cached |
||
35 | //credentials: 'same-origin', // include, *same-origin, omit |
||
36 | "headers": { |
||
37 | 'Accept': this.contentType, |
||
38 | 'Content-Type': this.contentType, |
||
39 | ...this.headers |
||
40 | }, |
||
41 | "redirect": 'follow', // manual, *follow, error |
||
42 | "referrerPolicy": 'no-referrer', // no-referrer, *no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url |
||
43 | }; |
||
51 |